using Godot;
using System;
[GlobalClass]
public partial class SkillBase : Node
{
	public enum TYPE{
		SUMMON,
		ONSLAUGHT,
		SUPPORT
	}
	[Export]
	public string name;
	[Export]
	public TYPE type;
	[Export]
	public double length;

	// Called when the node enters the scene tree for the first time.
	public override void _Ready()
	{
	}

	// Called every frame. 'delta' is the elapsed time since the previous frame.
	public override void _Process(double delta)
	{
	}

	public virtual void SkillToPosition(Characters owner,Vector2 pos)
	{}
	public virtual void SkillTocharacter(Characters owner,Characters _character)
	{}

	public bool CanUse(double distance)
	{
		bool result = false;
		if (distance < length)
		{
			result = true;
		}
		return result;
	}
}
